import assessCheckApi from './api'
import { axios } from '@/utils/request'
import router from '@/router/index'
import blobType from '@/common/blobType'
var menuType = blobType.menuType
var fywflcodeArr = blobType.fywflcodeArr
var fywflcode = ''
export function ocalityPostAction(data) {
    //console.log('字典传参',data)
    return axios({
      url: assessCheckApi.dict,
      method:'get' ,
      params:data,
      url_1:'outside'
    })
}

//质量体系文件-类型-管理查询
export function queryTreeList(params){
  return axios({
    url: assessCheckApi.queryTreeList,
    method:'get' ,
    params:{...params},
    url_1:'outside'
  })
}

//质量体系文件-类型-数组查询
export function queryPageList(params){
  return axios({
    url: assessCheckApi.queryPageList,
    method:'get' ,
    params:{...params},
    url_1:'outside'
  })
}

// 质量体系文件-类型-通过id查询
export function queryById(params){
  return axios({
    url: assessCheckApi.queryById,
    method:'get' ,
    params:{...params},
    url_1:'outside'
  })
}

// 质量体系文件-类型-添加
export function addType(data){
  return axios({
    url: assessCheckApi.addType,
    method:'post' ,
    data:{...data},
    url_1:'outside'
  })
}

// 质量体系文件-类型-编辑
export function editType(data){
  return axios({
    url: assessCheckApi.editType,
    method:'put' ,
    data:{...data},
    url_1:'outside'
  })
}

// 质量体系文件-类型-删除
export function deleteType(params){
  return axios({
    url: assessCheckApi.deleteType,
    method:'delete' ,
    params:{...params},
    url_1:'outside'
  })
}